package com.shemy.sshiro.service;

import com.shemy.sshiro.domain.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  角色Service
 * @author Dzsom
 * @date 2019-05-09 10:56
 */
public interface SysRoleService{

    int deleteByPrimaryKey(Integer roleId);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<SysRole> findByUserId(@Param("userId")Integer userId);

}
